#include "stdio.h"
#include "stdlib.h" 


int main(void)
{
	union{
		int a;
		char b;
	}T;
	
	T.a = 1;

	/*
	eg: 0x12345678
	MEM: LSB --> MSB
	big_endian: 
		0x12, 0x34, 0x56, 0x78
	little_endian:
		0x78, 0x56, 0x34, 0x12
	*/

	if(T.b==1){
		printf("big  endian ...\n");
	}else{
		printf("little  endian ...\n");
	}

	return 0;
}



